import request from '@/utils/request'

// 查询场馆方案列表
export function listProgramme(query) {
  return request({
    url: '/ticket/programme/list',
    method: 'get',
    params: query
  })
}

// 查询场馆方案详细
export function getProgramme(venuesProgrammeId) {
  return request({
    url: '/ticket/programme/' + venuesProgrammeId,
    method: 'get'
  })
}

// 新增场馆方案
export function addProgramme(data) {
  return request({
    url: '/ticket/programme',
    method: 'post',
    data: data
  })
}

// 修改场馆方案
export function updateProgramme(data) {
  return request({
    url: '/ticket/programme',
    method: 'put',
    data: data
  })
}

// 删除场馆方案
export function delProgramme(venuesProgrammeId) {
  return request({
    url: '/ticket/programme/' + venuesProgrammeId,
    method: 'delete'
  })
}

// 查询景区信息
export function getListTicOherBase() {
  return request({
    url: '/ticket/scenic/listTicOherBase?otherBaseType='+3,
    method: 'get'
  })
}
